public class Zuoye10 {

	public static void main(String[] args) {
		int i = 1, count = 0;
		while (i <= 10000) {
			if (i % 5 == 0) {
				System.out.print(i + " ");
				count++;
			}
			if (count == 20)
				System.out.print("\n");
			i++;
		}

	}

}
